package com.microHR.hr.service;

import com.microHR.hr.api.RespPageBean;
import com.microHR.hr.mapper.EmployeeMapper;
import com.microHR.hr.model.Employee;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;

import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;


public interface EmployeeService {

    RespPageBean getEmployeeByPage(Integer page, Integer size, Employee employee, Date[] beginDateScope);

    Integer addEmp(Employee employee);

    Integer deleteEmpById(Integer id);

    Integer updateEmp(Employee employee);

    Integer maxWorkID();

    int addEmps(List<Employee> list);

    // 自定义

    RespPageBean getEmployeeByPageWithSalary(Integer page, Integer size);

    Integer updateEmployeeSalaryById(Integer eid, Integer sid);
}
